package org.sendvox.freswitch.outbound.impl;

import java.util.concurrent.Executor;

import org.jboss.netty.channel.ChannelEvent;
import org.jboss.netty.channel.ChannelHandlerContext;
import org.jboss.netty.handler.execution.ExecutionHandler;

public class OutboundExecutionHandler extends ExecutionHandler {

	public OutboundExecutionHandler(Executor executor) {
		super(executor);
	}

	@Override
	public void handleUpstream(ChannelHandlerContext context, ChannelEvent e)
			throws Exception {
		getExecutor().execute(new ChannelEventRunnable(context, e));
	}

}
